package com.jd.org.service;

import com.jd.basic.query.DepartmentQuery;
import com.jd.basic.util.PageList;
import com.jd.org.domain.Department;

import java.util.List;

public interface IDepartmentService {

    /**
     * 保存对象
     * @param department
     */
    void save(Department department);

    /**
     * 移除对象
     * @param id
     */
    void remove(Long id);

    /**
     * 修改对象
     * @param department
     */
    void update(Department department);

    /**
     * 加载单个对象
     * @param id
     * @return
     */
    Department loadById(Long id);

    /**
     * 加载所有
     * @return
     */
    List<Department> loadAll();

    /**
     * 分页
     * @param departmentQuery
     * @return
     */
    PageList<Department> queryPage(DepartmentQuery departmentQuery);
}
